package com.example.philosophy.lod;

/**
 * 测试迪米特法则
 */
public class TestTenant {
    public static void main(String[] args) {
        HouseCompany houseCompany=new House();
        houseCompany.showinfo("碧桂园");

        Midder midder=new Midder();
        midder.setHouseCompany(houseCompany);

        Tenant tenant=new Tenant();
        tenant.setMidderCompany(midder);
        tenant.getInfo("碧桂园");
    }
}
